import request from "@/utils/request"

/**
 * 百度AI转动漫
 * @param {Object} params
 */
export function baiduImageProcess(params) {
	return request.post("ai/baidu/image_process", params).then(res => {
		return res.data
	})
}

/**
 * 百度AI列表
 * @param {Object} params
 */
export function aiAppList(params) {
	return request.get("app/ai/list", {
		params: params
	}).then(res => {
		return res.data
	})
}

export function baiduRecognition(params) {
	return request.post("ai/baidu/recognition", params).then(res => {
		return res.data
	})
}


/**
 * 视频去水印
 * @param {Object} params
 */
export function videoCrawer(params) {
	return request.post("ai/video/crawler", params).then(res => {
		return res.data
	})
}

/**
 * 文字生成图片
 * @param {Object} params
 */
export function text2Image(params) {
	return request.post("ai/flag/text/image", params).then(res => {
		return res.data
	})
}


/**
 * AI绘图提示词风格
 */
export function imageStyle() {
	return request.get("").then(res => {
		return res.data
	})
}

/**
 * AI绘图提示词列表
 * @param {Object} params
 */
export function imagePromotList(params) {
	return request.get("", {
		params: params
	}).then(res => {
		return res.data
	})
}

/**
 * AI绘图提示词详情
 * @param {Object} params
 */
export function imagePromotDetail(params) {
	return request.get("", {
		params: params
	}).then(res => {
		return res.data
	})
}